package com.gnerv.battle.boot.framework.business;

import com.gnerv.battle.boot.framework.common.model.RestResult;
import com.gnerv.battle.boot.framework.model.dto.ManageAccountCreateDTO;
import com.gnerv.battle.boot.framework.model.dto.ManageAccountDTO;
import com.gnerv.battle.boot.framework.model.dto.ManageAccountUpdateDTO;

import java.util.List;

/**
 * @author ligen
 */
public interface ManageAccountBusiness {

    RestResult<Void> create(ManageAccountCreateDTO manageaccountCreateDTO);

    RestResult<Void> deleteByUkId(String ukId);

    RestResult<Void> updateByUkId(ManageAccountUpdateDTO manageaccountUpdateDTO);

    RestResult<ManageAccountDTO> selectByUkId(String ukId);

    RestResult<List<ManageAccountDTO>> listByUsername(String username, Integer page, Integer size);

}
